//
//  BKMyAction.h
//  bestkeep
//
//  Created by 武探 on 2016/11/3.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BKUserStatusInfo.h"
#import "BKUserLoginController.h"
#import "BKMyCommon.h"
//是否登录 NSnumber
extern NSString *  const BKMyUserIsLoginKey;
//用户账号 NSString
extern NSString *  const BKMyUserInfoAccountKey;
//TGT NSString
extern NSString *  const BKMyUserGetTGTKey;
//获取utouust NSString
extern NSString *  const BKMyUserGetUTOUUPlatformSTkey;
//bk接口下的st
extern NSString * const BKMyUserGetBestKeepPlateformSTKey;
//用户id
extern NSString *  const BKMyUserInfoGetUserIdKey;
//分享id
extern NSString *  const BKMyUserInfoUserVistorIdKey;
//用户的认证状态
extern NSString * const BKMyUserInfoUserAuthStatusKey;

//获取未读消息数
extern NSString *  const BKMyUserGetUnreadMessageNumber;


typedef void(^BkMyCompleteBlock1)(id obj,id inform,NSError * error);

@interface BKMyAction : NSObject

-(UIViewController*)myViewController;

//获取用户信息
-(NSDictionary<NSString*, id> *)myUserInfo;

//设置开发环境
/*
 dict = @{@"envirValue":@"1"}
 1 开发
 2 生产
 3 测试
 */

-(id)setDevelopEnvironmentWithDict:(NSDictionary *)dict;

//获取st方法
/*
 * serverceUrl 请求服务的URL
 dict:@{@"severceUrl":serverceUrl, @"resultBlock":finishBlock}
 */
-(id)getSTWithDataDict:(NSDictionary *)dict;

//登录
/*
 originalVC :需要弹出登录的控制器
 dict : @{@"controller":originalVC, @"resultBlock":finishBlock};
 */

-(id)userGoToLoginWithDict:(NSDictionary *)dict;

//退出登录
-(id)userLoginOut;

//注册环信客服
-(id)userRegisterEMMobWithDict:(NSDictionary *)dict;

//请求未读消息数
/*
 * dict = @{@"userId":"mjunuhjhjhu"};
 *
*/
-(id)getUnreadMessageNumber;

//获取未读消息数
-(NSDictionary *)uNreadMessageNumber;

//获取deviceToken
-(id)getDeviceTokenWithDict:(NSDictionary *)dict;

//获取我的收藏控制器
-(UIViewController *)getMyFavorController;

//实名认证
-(id)realNameAuthVCWithDict:(NSDictionary *)paraDict;

//收货地址
-(UIViewController *)editShippingAddress:(NSDictionary *)address;

- (UIViewController *)toBK_CouponVC;

- (UIViewController *)toSystemMessageVC;

//进入我的VIP界面
-(id)goToVIPWithDataDict:(NSDictionary *)dict;
//获取系统消息
-(id)getMessageStatusWithApplicationFinishLaunchingWithOptionsDataDict:(NSDictionary *)dataDict;

-(id)getMessgaeWhthApplicationDidBecomeActiveWithDataDict:(NSDictionary *)dataDict;

-(id)getMessageWhenApplicationWillEnterForegroundWithDataDict:(NSDictionary *)dataDict;

-(id)getMessageNumWhenApplicationReceiveRemoteNotificationWithDataDict:(NSDictionary *)dataDict;

// 获取用户支付密钥
-(id)getUserSecretKey:(NSDictionary *)dic;

//将一个字符串写入文件
+ (BOOL)writeUTOUUPayStatus;
+ (BOOL)writeUTOUUOrderStatus;
+ (NSString *)readStringWithUTOUUOrderStatus;
+ (NSString *)readStringWithUTOUUPayStatus;

@end
